import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User:何人亮
 * Date:2024-11-12
 * 22:51
 */
class Test{
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);

        int n=sc.nextInt();
        int[] arr=new int[n];
        for(int i=0;i<n;i++){
            arr[i]=sc.nextInt();
        }
        int len=arr.length;
        boolean b=false;
        for(int i=0;i<len;i++){
            for(int j=i+1;j<len;j++){
                for(int k=j+1;k<len;k++){
                    if(arr[i]+arr[j]>arr[k]&&arr[i]-arr[j]<arr[k]&&b==false){
                        System.out.println("True");
                        b=true;
                        break;
                    }
                }
            }
        }
        if(!b){
            System.out.println("False");
        }
    }
}